Skip to content

Conversation

devongovett
Copy link
Contributor

This implements support for the hwb() color syntax specified in the CSS Color Module Level 4 spec. HWB colors are converted to RGB during parsing, just like HSL. Tests are generated using a script based on the Web Platform Tests.

Copy link
Member

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me. It'd be great to get some more code sharing between hsl and hwb, but I can land that in a follow-up.

@emilio emilio merged commit 62d63fe into servo:master Nov 26, 2021
@emilio
Copy link
Member

emilio commented Nov 26, 2021

#293 is the follow-up. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants